.class public Lcom/jecelyin/common/utils/d;
.super Ljava/lang/Object;
.source "StringUtils.java"


# direct methods
.method public static final a(Ljava/lang/String;I)I
    .locals 0

    .line 2
    :try_start_0
    invoke-static {p0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return p0

    :catch_0
    return p1
.end method

.method public static a([B)Ljava/lang/String;
    .locals 7
    .param p0    # [B
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    :try_start_0
    const-string v0, "MD5"

    .line 3
    invoke-static {v0}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;

    move-result-object v0

    .line 4
    invoke-virtual {v0, p0}, Ljava/security/MessageDigest;->update([B)V

    .line 5
    invoke-virtual {v0}, Ljava/security/MessageDigest;->digest()[B

    move-result-object p0

    const/16 v0, 0x10

    new-array v0, v0, [C

    const/16 v1, 0x30

    const/4 v2, 0x0

    aput-char v1, v0, v2

    const/16 v1, 0x31

    const/4 v3, 0x1

    aput-char v1, v0, v3

    const/16 v1, 0x32

    const/4 v3, 0x2

    aput-char v1, v0, v3

    const/4 v1, 0x3

    const/16 v4, 0x33

    aput-char v4, v0, v1

    const/16 v1, 0x34

    const/4 v4, 0x4

    aput-char v1, v0, v4

    const/4 v1, 0x5

    const/16 v5, 0x35

    aput-char v5, v0, v1

    const/4 v1, 0x6

    const/16 v5, 0x36

    aput-char v5, v0, v1

    const/4 v1, 0x7

    const/16 v5, 0x37

    aput-char v5, v0, v1

    const/16 v1, 0x8

    const/16 v5, 0x38

    aput-char v5, v0, v1

    const/16 v1, 0x9

    const/16 v5, 0x39

    aput-char v5, v0, v1

    const/16 v1, 0xa

    const/16 v5, 0x61

    aput-char v5, v0, v1

    const/16 v1, 0xb

    const/16 v5, 0x62

    aput-char v5, v0, v1

    const/16 v1, 0xc

    const/16 v5, 0x63

    aput-char v5, v0, v1

    const/16 v1, 0xd

    const/16 v5, 0x64

    aput-char v5, v0, v1

    const/16 v1, 0xe

    const/16 v5, 0x65

    aput-char v5, v0, v1

    const/16 v1, 0x66

    const/16 v5, 0xf

    aput-char v1, v0, v5

    .line 6
    new-instance v1, Ljava/lang/StringBuilder;

    array-length v6, p0

    mul-int/lit8 v6, v6, 0x2

    invoke-direct {v1, v6}, Ljava/lang/StringBuilder;-><init>(I)V

    .line 7
    :goto_0
    array-length v3, p0

    if-ge v2, v3, :cond_0

    .line 8
    aget-byte v3, p0, v2

    and-int/lit16 v3, v3, 0xf0

    ushr-int/2addr v3, v4

    aget-char v3, v0, v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    .line 9
    aget-byte v3, p0, v2

    and-int/2addr v3, v5

    aget-char v3, v0, v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 10
    :cond_0
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0
    :try_end_0
    .catch Ljava/security/NoSuchAlgorithmException; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    const-string p0, "d1b96e456dadad14b10aa3feda978a91"

    return-object p0
.end method

.method public static a(Ljava/lang/String;)Z
    .locals 0

    .line 1
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p0

    return p0
.end method

.method public static final b(Ljava/lang/String;)I
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-static {p0, v0}, Lcom/jecelyin/common/utils/d;->a(Ljava/lang/String;I)I

    move-result p0

    return p0
.end method
